#include "../app/app_mqtt.h"
#include <unistd.h>
#include <stdio.h>
static void msg_cb(char* data,int datalen)
{
    printf("receive success\n");
}
int main(void)
{
    /*注册外部回调*/
    App_mqtt_Register_Callback(msg_cb);
    /*初始化mqtt客户端*/
    App_mqtt_Init();
    /*向对应主题发布消息*/
    App_mqtt_SendMsg("helloword",9);

    while (1)
    {
        sleep(1);
    }
    
}